#                                                                    -*-perl-*-

$description = "Test the MAKECMDGOALS variable.";

$details = "\
We construct a makefile with various targets, all of which print out
\$(MAKECMDGOALS), then call it different ways.";

run_make_test(q!
.DEFAULT all:
#TAB#@echo $(MAKECMDGOALS)
!,
                       '', "\n");

run_make_test(undef, "all", "all\n");

run_make_test(undef, "foo bar baz yaz",
              "foo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\nfoo bar baz yaz\n");

# This tells the test driver that the perl test script executed properly.
1;
